import type { HotParams, HotResult } from '@/types/hot'
import http from '@/utils/http'

/**
 * 获取热门推荐
 * @param url 请求地址
 * @param query 查询参数
 */
export const getHotRecommendAPI = (url: string, query?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data: query,
  })
}
